objs 		= main.o builtin.o 
targ 		= ansh 
CFLAGS 		= -Wall -Wextra -Werror -Iinclude -g 


all: $(objs) 
	@$(CC) $(CFLAGS) $(objs) -o $(targ)
	@echo -e "LD\t\t\t$(targ)"

%.o: %.c 
	@$(CC) $(CFLAGS) -c $*.c 
	@echo -e "CC\t\t\t$*.c"

.PHONY clean: 
	@rm -f $(objs) $(targ) 

